
# coding: utf-8

import json
import random
from typing import Dict, List


def main(llm_intend_text) -> dict:
    data_list = get_data_item(llm_intend_text)
    data_item = {}
    intend_count = 0
    return {
        "data": data_item,
        "function": data_item.get("function") or '',
        "dimension_list": data_item.get("dimension_list") or [],
        "intend_count": intend_count,
        "intend_field": data_item.get("intend_field") or {},
        "intend_field": data_item.get("intend_field") or {},
        "project_name_list": ["151","科技"],
    }



def get_data_item(str: str) -> dict:
    data_item = {}
    try:
        data_item = json.loads(str) if str else {}
    except:
        data_item = {}
        pass
    return data_item